Repository navigation
test: harden keyboard-interactive hops, sudo abort, and chunking - #126
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Test-only hardening batch. No runtime or release change.\n\n### Added\n-
test/live/hop_keyboard_interactive.js: proves the README claim that keyboard-interactive works on nested hosts (server2 parent overforwardOutto server1\u0027skbduser).\n-test/live/sudo_abort.js: verifiesabortOnSudoFailurestops at the rejected prompt, logssudo-failed, and never runs the follow-up command.\n-test/unit/chunking.test.js: feeds one PTY transcript (wrapped echo, ANSI, CRLF, prompt) throughonDataat every two-byte split and byte-at-a-time, asserting identical completion.\n-test/unit/host-hop.test.js: asserts a hop\u0027s host-scopedonKeyboardInteractivereceives the challenge and answers with the child credentials.\n\n### Changed\n-scripts/run-live.js: success checks for both new live tests; nested keyboard-interactive added to the curated batch.\n-CHANGELOG.md:[Unreleased]development entry.\n\nAll local unit checks pass:npm run test:src185/185,npm test185/185 plus baseline 170 pass / 15 skipped. Live tests will run in CI."